$def with(expiry)

$if expiry is None or expiry == False:
    $# Not yet fulfilled
    <span class="red">Not yet downloaded</span>
$else:
    $ expiry_datetime = datetime_from_isoformat(expiry)
    <div class="darkgreen local-date-time" data-expiry-utc="$datetimestr_utc(expiry_datetime)">$datetimestr_utc(expiry_datetime)</div>
